home *** CD-ROM | disk | FTP | other *** search
- % -----------------------------------------------------------------------------
- % Attribute demo *TERMINATE PRESCRIPTION*
- % -----------------------------------------------------------------------------
- %
- % Version : 1.00
- % Filename : ATTR.TSL
- % Company : BLOKKER+BLOKKER Software and Bo Bendtsen
- % Programmer : Joop Blokker
- % Module created : 09 Aug 1995
- % Latest revision : 10 Aug 1995
- % Language/version : Terminate Prescription 1.00
- % Remarks : Demonstration of ATTR and GetAttrXY command
- %
- % -----------------------------------------------------------------------------
- %
-
- Include color.inc
-
- ClearScreen
- %
- % Save current screen color of column 1, row 1
- %
- Set SaveColor = GetAttrXY(1, 1)
- PrintLn "The current color attribute is ",SaveColor
- PrintLn ""
- %
- % calculate color attributes
- % foreground + (background * 16)
- %
- Set WhiteOnRed = White + (Red * 16)
- Set WhiteOnGray = White + (LightGray * 16)
- Set YellowOnBlue = Yellow + (Blue * 16)
-
- SetAttr WhiteOnRed
- PrintLn "This is white text on red background "
- SetAttr WhiteOnGray
- PrintLn "This is white text on white background "
- SetAttr YellowOnBlue
- PrintLn "This is yellow text on blue background "
- Set Attr=Red + Flash
- PrintLn "This is flashing red, also known as blink "
- %
- % Restore original color
- %
- Set Attr = SaveColor
- PrintLn ""
- PrintLn "Attribute is reset to original color."
- PrintLn ""
- PrintLn "Press Enter, please."
- WaitEnter
- ClearScreen
-
-